package com.sinothk.file.preview.demo

import android.os.Bundle
import android.os.Environment
import androidx.appcompat.app.AppCompatActivity
import com.sinothk.file.preview.wps.WpsHelper
import kotlinx.android.synthetic.main.demo_activity_wps.*

class WpsDemoActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.demo_activity_wps)

        button.setOnClickListener {
            val path = "${Environment.getExternalStorageDirectory()}/Pictures/test.xls";
            WpsHelper.open(this, path)
        }

    }
}
